<!-- 用于地图中弹出面板的边框样式 -->
<template>
  <transition name="fade">
    <!-- 外层div控制面板显隐 -->
    <div class="main_top map_main_top" :class="{panelViewRight:(place=='right'),panelViewLeft:(place=='left')}" >
      <div class="SearchPanel">
        <div class="border">
          <!-- 关闭按钮 -->
          <div v-show="closer" ><a href="#" id="popup-closer" class="ol-popup-closer" @click="closer()"></a></div>
          <div id="popup-content" style="display:inline;">
            <!-- 显示内容使用插槽 -->
            <slot/>
          </div>
        </div>
      </div>
    </div>
  </transition >
</template>

<script>
export default {
  name: 'PopupBorder',
  created: function () {
  },
  data () {
    return {
      tableData: [],
      localIsShow: true
    }
  },
  methods: {
  },
  // 组建接受的传入参数
  props: [
    // 位置
    'place',
    // 宽度
    'width',
    // 高度
    'lenght',
    // 关闭回调函数
    'closer',
    // 是否透明
    'isLucency'

  ]
}
</script>
<style scoped>
.panelViewRight {
  float: right;
  margin-top: 10px;
  margin-right: 10px;
}
.panelViewLeft {
  float: left;

}
.inline {
  display: inline;
}
.map_main_top{
    position: relative;
    z-index: 2;
    padding: 0px 0px 0px 0px;
    background-color: transparent;
}
.border{
  background:#09193d;
  box-shadow: 0px 1px 2px #999999;
  border-radius: 4px;
  background-image: url(../../assets/img/beijingtu.jpg);
  background-position-x: -170px;
  background-repeat: no-repeat;
  border:2px solid rgb(96,203,248);
  width: 100%;
  /* height:360px; */

}

.SearchPanel{

  width: 600px;
  height: 340px;
  float: right;

}
.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
    color: rgb(96,203,248);
    font-weight: bold;
    z-index: 10;
}
</style>
